package com.heima.wemedia.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.Channel;
import com.heima.wemedia.mapper.ChannelMapper;
import com.heima.wemedia.service.ChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 嘉德罗斯
 * @date 2021/11/22
 */
@Service
public class ChannelServiceImpl extends ServiceImpl<ChannelMapper,Channel> implements ChannelService {

    @Autowired
    private ChannelMapper channelMapper;

    @Override
    public ResponseResult find() {
        List<Channel> channels = channelMapper.selectList(null);
        return ResponseResult.okResult(channels);
    }

}
